/**
 * 
 */
package kr.co.insoft.publicmesh.controller.comparison.planer;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
@Controller
@RequestMapping(value = "comparison/planer")
public class PlanerController {

	final String TILES_PAGE_PREFIX = "tiles/comparison/planer";
	final String SINGLE_PAGE_PREFIX = "comparison/planer";

	/**
	 * HighChart Test View
	 * 
	 * @param
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "view", method = RequestMethod.GET)
	public String view(
			Model model,
			@RequestParam(value = "ip", defaultValue = "N", required = false) String ip)
			throws Exception {
		if (ip.equals("Y"))
			return SINGLE_PAGE_PREFIX + "/view";

		return TILES_PAGE_PREFIX + "/view";
	}
	
	
}
